python countdown from 20 down to 0

33

x = 20

while True:
    print(x)
    x -= 1
    if x == 0:
      break
    
for x in range(20, 1):
    print(x)

Comments

Submit
0 Comments